package app.injection
{
	import app.view.components.MainView;
	import app.view.mediators.MainViewMediator;
	import app.view.mediators.SimplePanelViewMediator;
	import app.view.mediators.ViewStackMediator;
	
	import flash.display.DisplayObject;
	
	import org.puremvc.as3.multicore.patterns.observer.Notifier;
	
	public class MainViewInjector extends Notifier	{
		
		public function inject( view:DisplayObject ):void{
			var mainView:MainView;
			mainView = MainView( view );
			
			facade.registerMediator( new MainViewMediator( mainView ) );
			facade.registerMediator( new ViewStackMediator( mainView.viewstack ) );
			//facade.registerMediator( new SimplePanelViewMediator(  ) );
		}
	}
}